package pl.wroc.uni.ii.pastuszka.algorithms.evolutionary.rankers;

import pl.wroc.uni.ii.pastuszka.algorithms.evolutionary.Individual;



public class OneMax implements IndividualRanker {

  @Override
  public float rank(Individual x) {
    int sum = 0;
    for (int i : x.chromosome) {
      sum += i;
    }

    return sum;
  }

}
